PSF-2018-7 xml package does not obey ignore_environment

Not scored Published

The Python xml package ignores isolation flags, allowing environment variables to override parser implementations, bypassing security restrictions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
None listed

What is PSF-2018-7?

PSF-2018-7 is a vulnerability, published on 24 Sep 2018.

Official description

On two occasions, the xml package uses environment variables to override parser / DOM implementations: xml.sax package and xml.dom.domreg module. On both occasions, the code should not use env vars to override module names, when the interpreter is started with flags like -E or -I.

Which versions are affected by PSF-2018-7?

How do I fix PSF-2018-7?

No fix has been published for PSF-2018-7 yet. Limit exposure of the affected software until one is available.

Is PSF-2018-7 being exploited?

There is no known exploitation of PSF-2018-7 in the wild and no public exploit code.

Sources

Is PSF-2018-7 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free