Code Injection in rdflib - CVE-2019-7653

 

Code Injection in rdflib - CVE-2019-7653

Published: February 9, 2019 / Updated: August 8, 2020


Vulnerability identifier: #VU36170
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-7653
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The Debian python-rdflib-tools 4.2.2-1 package for RDFLib 4.2.2 has CLI tools that can load Python modules from the current working directory, allowing code injection, because "python -m" looks in this directory, as demonstrated by rdf2dot. This issue is specific to use of the debian/scripts directory.


Affected software

rdflib
Ubuntu
python-rdflib (Ubuntu package)
python-rdflib-tools (Ubuntu package)
python3-rdflib (Ubuntu package)

How to mitigate CVE-2019-7653

Install update from vendor's website.

python-rdflib (Ubuntu package) - update to 4.1.2-3+deb8u1build0.16.04.1
python-rdflib-tools (Ubuntu package) - update to 4.1.2-3+deb8u1build0.16.04.1
python3-rdflib (Ubuntu package) - update to 4.1.2-3+deb8u1build0.16.04.1

External References

Related Security Bulletins