Vulnerabilities in pkg:pypi/FormEncode

PACKAGE
Advisory Identifier: GHSA-9jp4-68vc-r8wq
Advisory Summary

CVE-2008-6547 is a HIGH (CVSS 7.5) formencode access restrictions bypass vulnerability (CWE-20: Improper Input Validation) affecting FormEncode libraries in the PyPI ecosystem. The issue involves formencode access restrictions bypass. Remediation is available by upgrading affected packages to version 1.0.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/FormEncode

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/FormEncode. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9jp4-68vc-r8wq CVE-2008-6547 HIGH FormEncode Access Restrictions Bypass

CVE-2008-6547 at a Glance

CVE Identifier CVE-2008-6547
GHSA Identifier GHSA-9jp4-68vc-r8wq
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product FormEncode
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2008-6547

To remediate this vulnerability, upgrade all affected FormEncode dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

FormEncode fixed: 1.0.1
pip install FormEncode>=1.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show FormEncode

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2008-6547, inspect your installed packages using pip:

pip show FormEncode

Analyze the terminal output to locate any version of FormEncode in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.

Note: The pip show FormEncode command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In FormEncode, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

`schema.py` in FormEncode for Python (python-formencode) 1.0 does not apply the `chained_validators` feature, which allows attackers to bypass intended access restrictions via unknown vectors.

CVE-2008-6547 Affected FormEncode Versions

1 component(s)
Fixed Versions:
1.0.1
Product / Package Ecosystem Affected Versions Fixed Version
FormEncode
PyPI
≥ 1.0
< 1.0.1
All 1 versions
1.0
1.0.1

References

Frequently Asked Questions

What is CVE-2008-6547?
CVE-2008-6547 is a security vulnerability in FormEncode involving FormEncode Access Restrictions Bypass under CWE-20: Improper Input Validation.
Which FormEncode versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: FormEncode.
What version fixes CVE-2008-6547?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is FormEncode affected?
Yes, FormEncode is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What is the CVSS score of CVE-2008-6547?
CVE-2008-6547 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2008-6547?
CVE-2008-6547 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2008-6547?
Run the dependency tree command: 'pip show FormEncode'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9jp4-68vc-r8wq",
  "modified" : "2024-09-20T17:54:12Z",
  "published" : "2022-05-17T02:11:13Z",
  "aliases" : [ "CVE-2008-6547" ],
  "summary" : "FormEncode Access Restrictions Bypass",
  "details" : "`schema.py` in FormEncode for Python (python-formencode) 1.0 does not apply the `chained_validators` feature, which allows attackers to bypass intended access restrictions via unknown vectors.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "FormEncode"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ],
    "versions" : [ "1.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2008-6547"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/43878"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/davidfraser/formencode"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/formencode/PYSEC-2009-5.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20080905200034/http://secunia.com/advisories/31081"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20081013102442/http://secunia.com/advisories/31163"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200228145643/http://www.securityfocus.com/bid/30282"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-July/msg00607.html"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/tracker/download.php?group_id=91231&atid=596416&file_id=271779&aid=1925164"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/tracker/index.php?func=detail&aid=1925164&group_id=91231&atid=596416"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-09T18:47:25Z",
    "nvd_published_at" : "2009-03-30T01:30:00Z"
  }
}