MGASA-2026-0592: Updated python-pytest package fixes a security vulnerability

Published Nov 12, 2026
·
Updated

On UNIX, pytest uses a predictable naming scheme under /tmp with a UID check for added security. The UID check however will follow symlinks, and is vulnerable to TOCTOU. This leaves pytest vulnerable to several well-known vulnerabilities on multi-user systems. The risk ultimately depends on how pytest is used, but denial of service is trivial and code execution is possible.

Affected Software

1 affected componentFixes available
mageia/python-pytest<9.0.3-1.mga10
9.0.3-1.mga10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mageia/python-pytest to a version that resolves this vulnerability.

    Fixed in 9.0.3-1.mga10

Event History

Nov 12, 2026
Advisory Published
via OSV·10:40 PM
Data Sourced
via OSV·10:40 PM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which environments are most exposed to this issue?

Multi-user UNIX systems are the primary concern because pytest creates predictably named files under /tmp. The practical risk depends on how pytest is used in that environment.

2

What does an attacker need to exploit it?

An attacker needs the ability to manipulate filesystem entries in /tmp, such as by using symlinks, during pytest's check-and-use window. The vulnerable UID check follows symlinks, enabling a time-of-check to time-of-use race.

3

What impact is possible?

Denial of service is described as trivial. Code execution is also possible, depending on how pytest is used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203