{
	"document":{
		"aggregate_severity":{
			"namespace":"https://nvd.nist.gov/vuln-metrics/cvss",
			"text":"HIGH"
		},
		"category":"csaf_vex",
		"csaf_version":"2.0",
		"distribution":{
			"tlp":{
				"label":"WHITE",
				"url":"https:/www.first.org/tlp/"
			}
		},
		"lang":"en",
		"notes":[
			{
				"text":"Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In Flatpack since version 0.9.4 and before version 1.10.2 has a vulnerability in the \"file forwarding\" feature which can be used by an attacker to gain access to files that would not ordinarily be allowed by the app's permissions. By putting the special tokens `@@` and/or `@@u` in the Exec field of a Flatpak app's .desktop file, a malicious app publisher can trick flatpak into behaving as though the user had chosen to open a target file with their Flatpak app, which automatically makes that file available to the Flatpak app. This is fixed in version 1.10.2. A minimal solution is the first commit \"`Disallow @@ and @@U usage in desktop files`\". The follow-up commits \"`dir: Reserve the whole @@ prefix`\" and \"`dir: Refuse to export .desktop files with suspicious uses of @@ tokens`\" are recommended, but not strictly required. As a workaround, avoid installing Flatpak apps from untrusted sources, or check the contents of the exported `.desktop` files in `exports/share/applications/*.desktop` (typically `~/.local/share/flatpak/exports/share/applications/*.desktop` and `/var/lib/flatpak/exports/share/applications/*.desktop`) to make sure that literal filenames do not follow `@@` or `@@u`.",
				"category":"general",
				"title":"Synopsis"
			}
		],
		"publisher":{
			"issuing_authority":"openEuler security committee",
			"name":"openEuler",
			"namespace":"https://www.openeuler.org",
			"contact_details":"openeuler-security@openeuler.org",
			"category":"vendor"
		},
		"references":[
			{
				"summary":"nvd cve",
				"category":"external",
				"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21381"
			},
			{
				"summary":"CVE-2021-21381 vex file",
				"category":"self",
				"url":"https://repo.openeuler.org/security/data/csaf/cve/2021/csaf-openeuler-cve-2021-21381.json"
			},
			{
				"summary":"openEuler-SA-2021-1149",
				"category":"self",
				"url":"https://openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1149"
			},
			{
				"summary":"CVE-2021-21381",
				"category":"self",
				"url":"https://openeuler.org/en/security/cve/detail?cveId=CVE-2021-21381&packageName=flatpak"
			}
		],
		"title":"openEuler cve CVE-2021-21381",
		"tracking":{
			"initial_release_date":"2021-05-06T09:19:07+08:00",
			"revision_history":[
				{
					"date":"2021-05-06T09:19:07+08:00",
					"summary":"Initial",
					"number":"1.0.0"
				},
				{
					"date":"2024-10-31T09:19:07+08:00",
					"summary":"Current version",
					"number":"2.0.0"
				}
			],
			"generator":{
				"date":"2024-10-31T09:19:07+08:00",
				"engine":{
					"name":"openEuler CSAF Tool V1.0"
				}
			},
			"current_release_date":"2024-10-31T09:19:07+08:00",
			"id":"CVE-2021-21381",
			"version":"2.0.0",
			"status":"interim"
		}
	},
	"product_tree":{
		"branches":[
			{
				"name":"openEuler",
				"category":"vendor",
				"branches":[
					{
						"name":"openEuler",
						"branches":[
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"openEuler-20.03-LTS-SP1",
									"name":"openEuler-20.03-LTS-SP1"
								},
								"name":"openEuler-20.03-LTS-SP1",
								"category":"product_version"
							}
						],
						"category":"product_name"
					},
					{
						"name":"aarch64",
						"branches":[
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-debuginfo-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-debuginfo-1.0.3-5.oe1.aarch64.rpm"
								},
								"name":"flatpak-debuginfo-1.0.3-5.oe1.aarch64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-debugsource-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-debugsource-1.0.3-5.oe1.aarch64.rpm"
								},
								"name":"flatpak-debugsource-1.0.3-5.oe1.aarch64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-devel-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-devel-1.0.3-5.oe1.aarch64.rpm"
								},
								"name":"flatpak-devel-1.0.3-5.oe1.aarch64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-1.0.3-5.oe1.aarch64.rpm"
								},
								"name":"flatpak-1.0.3-5.oe1.aarch64.rpm",
								"category":"product_version"
							}
						],
						"category":"architecture"
					},
					{
						"name":"noarch",
						"branches":[
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-help-1.0.3-5.oe1.noarch.rpm(20.03-LTS-SP1)",
									"name":"flatpak-help-1.0.3-5.oe1.noarch.rpm"
								},
								"name":"flatpak-help-1.0.3-5.oe1.noarch.rpm",
								"category":"product_version"
							}
						],
						"category":"architecture"
					},
					{
						"name":"src",
						"branches":[
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-1.0.3-5.oe1.src.rpm(20.03-LTS-SP1)",
									"name":"flatpak-1.0.3-5.oe1.src.rpm"
								},
								"name":"flatpak-1.0.3-5.oe1.src.rpm",
								"category":"product_version"
							}
						],
						"category":"architecture"
					},
					{
						"name":"x86_64",
						"branches":[
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-devel-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-devel-1.0.3-5.oe1.x86_64.rpm"
								},
								"name":"flatpak-devel-1.0.3-5.oe1.x86_64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-debuginfo-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-debuginfo-1.0.3-5.oe1.x86_64.rpm"
								},
								"name":"flatpak-debuginfo-1.0.3-5.oe1.x86_64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-debugsource-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-debugsource-1.0.3-5.oe1.x86_64.rpm"
								},
								"name":"flatpak-debugsource-1.0.3-5.oe1.x86_64.rpm",
								"category":"product_version"
							},
							{
								"product":{
									"product_identification_helper":{
										"cpe":"cpe:/a:openEuler:openEuler:20.03-LTS-SP1"
									},
									"product_id":"flatpak-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
									"name":"flatpak-1.0.3-5.oe1.x86_64.rpm"
								},
								"name":"flatpak-1.0.3-5.oe1.x86_64.rpm",
								"category":"product_version"
							}
						],
						"category":"architecture"
					}
				]
			}
		],
		"relationships":[
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-debuginfo-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.aarch64",
					"name":"flatpak-debuginfo-1.0.3-5.oe1.aarch64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-debugsource-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.aarch64",
					"name":"flatpak-debugsource-1.0.3-5.oe1.aarch64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-devel-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.aarch64",
					"name":"flatpak-devel-1.0.3-5.oe1.aarch64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-1.0.3-5.oe1.aarch64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.aarch64",
					"name":"flatpak-1.0.3-5.oe1.aarch64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-help-1.0.3-5.oe1.noarch.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-help-1.0.3-5.oe1.noarch",
					"name":"flatpak-help-1.0.3-5.oe1.noarch as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-1.0.3-5.oe1.src.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.src",
					"name":"flatpak-1.0.3-5.oe1.src as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-devel-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.x86_64",
					"name":"flatpak-devel-1.0.3-5.oe1.x86_64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-debuginfo-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.x86_64",
					"name":"flatpak-debuginfo-1.0.3-5.oe1.x86_64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-debugsource-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.x86_64",
					"name":"flatpak-debugsource-1.0.3-5.oe1.x86_64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			},
			{
				"relates_to_product_reference":"openEuler-20.03-LTS-SP1",
				"product_reference":"flatpak-1.0.3-5.oe1.x86_64.rpm(20.03-LTS-SP1)",
				"full_product_name":{
					"product_id":"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.x86_64",
					"name":"flatpak-1.0.3-5.oe1.x86_64 as a component of openEuler-20.03-LTS-SP1"
				},
				"category":"default_component_of"
			}
		]
	},
	"vulnerabilities":[
		{
			"cve":"CVE-2021-21381",
			"notes":[
				{
					"text":"Flatpak is a system for building, distributing, and running sandboxed desktop applications on Linux. In Flatpack since version 0.9.4 and before version 1.10.2 has a vulnerability in the \"file forwarding\" feature which can be used by an attacker to gain access to files that would not ordinarily be allowed by the app's permissions. By putting the special tokens `@@` and/or `@@u` in the Exec field of a Flatpak app's .desktop file, a malicious app publisher can trick flatpak into behaving as though the user had chosen to open a target file with their Flatpak app, which automatically makes that file available to the Flatpak app. This is fixed in version 1.10.2. A minimal solution is the first commit \"`Disallow @@ and @@U usage in desktop files`\". The follow-up commits \"`dir: Reserve the whole @@ prefix`\" and \"`dir: Refuse to export .desktop files with suspicious uses of @@ tokens`\" are recommended, but not strictly required. As a workaround, avoid installing Flatpak apps from untrusted sources, or check the contents of the exported `.desktop` files in `exports/share/applications/*.desktop` (typically `~/.local/share/flatpak/exports/share/applications/*.desktop` and `/var/lib/flatpak/exports/share/applications/*.desktop`) to make sure that literal filenames do not follow `@@` or `@@u`.",
					"category":"description",
					"title":"Vulnerability Description"
				}
			],
			"product_status":{
				"fixed":[
					"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.aarch64",
					"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.aarch64",
					"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.aarch64",
					"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.aarch64",
					"openEuler-20.03-LTS-SP1:flatpak-help-1.0.3-5.oe1.noarch",
					"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.src",
					"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.x86_64",
					"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.x86_64",
					"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.x86_64",
					"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.x86_64"
				]
			},
			"remediations":[
				{
					"product_ids":[
						"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-help-1.0.3-5.oe1.noarch",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.src",
						"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.x86_64"
					],
					"details":"flatpak security update",
					"category":"vendor_fix",
					"url":"https://openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1149"
				}
			],
			"scores":[
				{
					"cvss_v3":{
						"baseSeverity":"HIGH",
						"baseScore":8.2,
						"vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N",
						"version":"3.1"
					},
					"products":[
						"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.aarch64",
						"openEuler-20.03-LTS-SP1:flatpak-help-1.0.3-5.oe1.noarch",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.src",
						"openEuler-20.03-LTS-SP1:flatpak-devel-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-debuginfo-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-debugsource-1.0.3-5.oe1.x86_64",
						"openEuler-20.03-LTS-SP1:flatpak-1.0.3-5.oe1.x86_64"
					]
				}
			],
			"threats":[
				{
					"details":"High",
					"category":"impact"
				}
			],
			"title":"CVE-2021-21381"
		}
	]
}