CVE-2023-26112: Configobj Denial of Service Vulnerability
LOWCVE-2023-26112 is a LOW (CVSS 3.7) denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Configobj libraries in the PyPI ecosystem. The issue involves configobj redos exploitable by developer using values in a server-side configuration file. Remediation is available by upgrading affected packages to version 5.0.9.
CVE-2023-26112 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2023-26112
To remediate this vulnerability, upgrade all affected Configobj dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install configobj>=5.0.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show configobj
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2023-26112, inspect your installed packages using pip:
pip show configobj
Analyze the terminal output to locate any version of Configobj in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.9), your application is affected.
Note: The pip show configobj command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Configobj, 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
CVE-2023-26112 Affected Configobj Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
configobj
|
PyPI |
< 5.0.9
|
5.0.9
|
References
Frequently Asked Questions
What is CVE-2023-26112?
Which Configobj versions are affected?
What version fixes CVE-2023-26112?
Is configobj affected?
What is the CVSS score of CVE-2023-26112?
What CWE is associated with CVE-2023-26112?
How can I check PyPI dependencies for CVE-2023-26112?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-c33w-24p9-8m24",
"modified" : "2024-12-16T22:46:10Z",
"published" : "2023-04-03T06:30:19Z",
"aliases" : [ "CVE-2023-26112" ],
"summary" : "configobj ReDoS exploitable by developer using values in a server-side configuration file",
"details" : "All versions of the package configobj are vulnerable to Regular Expression Denial of Service (ReDoS) via the validate function, using (.+?)\\((.*)\\). **Note:** This is only exploitable in the case of a developer, putting the offending value in a server side configuration file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "configobj"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26112"
}, {
"type" : "WEB",
"url" : "https://github.com/DiffSK/configobj/issues/232"
}, {
"type" : "WEB",
"url" : "https://github.com/DiffSK/configobj/commit/7c618b0bbaff6ecaca51a6f05b29795d1377a4a5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DiffSK/configobj"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6BO4RLMYEJODCNUE3DJIIUUFVTPAG6VN"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZHY7B33EFY4LESP2NI4APQUPRROTAZK"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PYU4IHVLOTYMFPH7KDOJGKZQR4GKWPFK"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/configobj/5.0.9"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-PYTHON-CONFIGOBJ-3252494"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-04-04T21:40:45Z",
"nvd_published_at" : "2023-04-03T05:15:00Z"
}
}