<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
	<DocumentTitle xml:lang="en">An update for python-filelock is now available for openEuler-24.03-LTS-SP1,openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4</DocumentTitle>
	<DocumentType>Security Advisory</DocumentType>
	<DocumentPublisher Type="Vendor">
		<ContactDetails>openeuler-security@openeuler.org</ContactDetails>
		<IssuingAuthority>openEuler security committee</IssuingAuthority>
	</DocumentPublisher>
	<DocumentTracking>
		<Identification>
			<ID>openEuler-SA-2026-3143</ID>
		</Identification>
		<Status>Final</Status>
		<Version>1.0</Version>
		<RevisionHistory>
			<Revision>
				<Number>1.0</Number>
				<Date>2026-07-24</Date>
				<Description>Initial</Description>
			</Revision>
		</RevisionHistory>
		<InitialReleaseDate>2026-07-24</InitialReleaseDate>
		<CurrentReleaseDate>2026-07-24</CurrentReleaseDate>
		<Generator>
			<Engine>openEuler SA Tool V1.0</Engine>
			<Date>2026-07-24</Date>
		</Generator>
	</DocumentTracking>
	<DocumentNotes>
		<Note Title="Synopsis" Type="General" Ordinal="1" xml:lang="en">python-filelock security update</Note>
		<Note Title="Summary" Type="General" Ordinal="2" xml:lang="en">An update for python-filelock is now available for openEuler-24.03-LTS-SP1,openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4</Note>
		<Note Title="Description" Type="General" Ordinal="3" xml:lang="en">Security Fix(es):

filelock is a platform-independent file lock for Python. In versions prior to 3.20.1, a Time-of-Check-Time-of-Use (TOCTOU) race condition allows local attackers to corrupt or truncate arbitrary user files through symlink attacks. The vulnerability exists in both Unix and Windows lock file creation where filelock checks if a file exists before opening it with O_TRUNC. An attacker can create a symlink pointing to a victim file in the time gap between the check and open, causing os.open() to follow the symlink and truncate the target file. All users of filelock on Unix, Linux, macOS, and Windows systems are impacted. The vulnerability cascades to dependent libraries. The attack requires local filesystem access and ability to create symlinks (standard user permissions on Unix; Developer Mode on Windows 10+). Exploitation succeeds within 1-3 attempts when lock file paths are predictable. The issue is fixed in version 3.20.1. If immediate upgrade is not possible, use SoftFileLock instead of UnixFileLock/WindowsFileLock (note: different locking semantics, may not be suitable for all use cases); ensure lock file directories have restrictive permissions (chmod 0700) to prevent untrusted users from creating symlinks; and/or monitor lock file directories for suspicious symlinks before running trusted applications. These workarounds provide only partial mitigation. The race condition remains exploitable. Upgrading to version 3.20.1 is strongly recommended.(CVE-2025-68146)</Note>
		<Note Title="Topic" Type="General" Ordinal="4" xml:lang="en">An update for python-filelock is now available for openEuler-24.03-LTS-SP1,openEuler-24.03-LTS-SP3,openEuler-24.03-LTS-SP4,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP4.

openEuler Security has rated this update as having a security impact of medium. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section.</Note>
		<Note Title="Severity" Type="General" Ordinal="5" xml:lang="en">Medium</Note>
		<Note Title="Affected Component" Type="General" Ordinal="6" xml:lang="en">python-filelock</Note>
	</DocumentNotes>
	<DocumentReferences>
		<Reference Type="Self">
			<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3143</URL>
		</Reference>
		<Reference Type="openEuler CVE">
			<URL>https://www.openeuler.org/en/security/cve/detail/?cveId=CVE-2025-68146</URL>
		</Reference>
		<Reference Type="Other">
			<URL>https://nvd.nist.gov/vuln/detail/CVE-2025-68146</URL>
		</Reference>
	</DocumentReferences>
	<ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
		<Branch Type="Product Name" Name="openEuler">
			<FullProductName ProductID="openEuler-24.03-LTS-SP1" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">openEuler-24.03-LTS-SP1</FullProductName>
			<FullProductName ProductID="openEuler-24.03-LTS-SP3" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">openEuler-24.03-LTS-SP3</FullProductName>
			<FullProductName ProductID="openEuler-24.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">openEuler-24.03-LTS-SP4</FullProductName>
			<FullProductName ProductID="openEuler-20.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">openEuler-20.03-LTS-SP4</FullProductName>
			<FullProductName ProductID="openEuler-22.03-LTS-SP4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">openEuler-22.03-LTS-SP4</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="src">
			<FullProductName ProductID="python-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">python-filelock-3.13.1-5.oe2403sp1.src.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">python-filelock-3.13.1-5.oe2403sp3.src.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">python-filelock-3.13.1-5.oe2403sp4.src.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-3.0.12-2" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">python-filelock-3.0.12-2.oe2003sp4.src.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-3.0.12-4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">python-filelock-3.0.12-4.oe2203sp4.src.rpm</FullProductName>
		</Branch>
		<Branch Type="Package Arch" Name="noarch">
			<FullProductName ProductID="python-filelock-doc-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">python-filelock-doc-3.13.1-5.oe2403sp1.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-help-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">python-filelock-help-3.13.1-5.oe2403sp1.noarch.rpm</FullProductName>
			<FullProductName ProductID="python3-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP1">python3-filelock-3.13.1-5.oe2403sp1.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-doc-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">python-filelock-doc-3.13.1-5.oe2403sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-help-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">python-filelock-help-3.13.1-5.oe2403sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="python3-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP3">python3-filelock-3.13.1-5.oe2403sp3.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-doc-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">python-filelock-doc-3.13.1-5.oe2403sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-help-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">python-filelock-help-3.13.1-5.oe2403sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python3-filelock-3.13.1-5" CPE="cpe:/a:openEuler:openEuler:24.03-LTS-SP4">python3-filelock-3.13.1-5.oe2403sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-doc-3.0.12-2" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">python-filelock-doc-3.0.12-2.oe2003sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-help-3.0.12-2" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">python-filelock-help-3.0.12-2.oe2003sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python3-filelock-3.0.12-2" CPE="cpe:/a:openEuler:openEuler:20.03-LTS-SP4">python3-filelock-3.0.12-2.oe2003sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-doc-3.0.12-4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">python-filelock-doc-3.0.12-4.oe2203sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python-filelock-help-3.0.12-4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">python-filelock-help-3.0.12-4.oe2203sp4.noarch.rpm</FullProductName>
			<FullProductName ProductID="python3-filelock-3.0.12-4" CPE="cpe:/a:openEuler:openEuler:22.03-LTS-SP4">python3-filelock-3.0.12-4.oe2203sp4.noarch.rpm</FullProductName>
		</Branch>
	</ProductTree>
	<Vulnerability Ordinal="1" xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1">
		<Notes>
			<Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">filelock is a platform-independent file lock for Python. In versions prior to 3.20.1, a Time-of-Check-Time-of-Use (TOCTOU) race condition allows local attackers to corrupt or truncate arbitrary user files through symlink attacks. The vulnerability exists in both Unix and Windows lock file creation where filelock checks if a file exists before opening it with O_TRUNC. An attacker can create a symlink pointing to a victim file in the time gap between the check and open, causing os.open() to follow the symlink and truncate the target file. All users of filelock on Unix, Linux, macOS, and Windows systems are impacted. The vulnerability cascades to dependent libraries. The attack requires local filesystem access and ability to create symlinks (standard user permissions on Unix; Developer Mode on Windows 10+). Exploitation succeeds within 1-3 attempts when lock file paths are predictable. The issue is fixed in version 3.20.1. If immediate upgrade is not possible, use SoftFileLock instead of UnixFileLock/WindowsFileLock (note: different locking semantics, may not be suitable for all use cases); ensure lock file directories have restrictive permissions (chmod 0700) to prevent untrusted users from creating symlinks; and/or monitor lock file directories for suspicious symlinks before running trusted applications. These workarounds provide only partial mitigation. The race condition remains exploitable. Upgrading to version 3.20.1 is strongly recommended.</Note>
		</Notes>
		<ReleaseDate>2026-07-24</ReleaseDate>
		<CVE>CVE-2025-68146</CVE>
		<ProductStatuses>
			<Status Type="Fixed">
				<ProductID>openEuler-24.03-LTS-SP1</ProductID>
				<ProductID>openEuler-24.03-LTS-SP3</ProductID>
				<ProductID>openEuler-24.03-LTS-SP4</ProductID>
				<ProductID>openEuler-20.03-LTS-SP4</ProductID>
				<ProductID>openEuler-22.03-LTS-SP4</ProductID>
			</Status>
		</ProductStatuses>
		<Threats>
			<Threat Type="Impact">
				<Description>Medium</Description>
			</Threat>
		</Threats>
		<CVSSScoreSets>
			<ScoreSet>
				<BaseScore>6.5</BaseScore>
				<Vector>AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:H</Vector>
			</ScoreSet>
		</CVSSScoreSets>
		<Remediations>
			<Remediation Type="Vendor Fix">
				<Description>python-filelock security update</Description>
				<DATE>2026-07-24</DATE>
				<URL>https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-3143</URL>
			</Remediation>
		</Remediations>
	</Vulnerability>
</cvrfdoc>