{"id":"CVE-2017-9274","aliases":["DEBIAN-CVE-2017-9274","EUVD-2017-18210","GHSA-rmgp-j5rm-7ghv","SUSE-SU-2017:3253-1","SUSE-SU-2018:0065-1","UBUNTU-CVE-2017-9274","openSUSE-SU-2024:11106-1"],"status":"published","title":"osc executes spec code during \"osc commit\"","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.02314,"percentile":0.83522,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2017-12-08T12:54:18Z","modified":"2026-10-24T10:30:48Z","fixes":[{"ecosystem":"Debian:12","package":"osc","fixed_in":["0.162.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"osc","fixed_in":["0.162.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"osc","fixed_in":["0.162.1-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"obs-service-source_validator","fixed_in":["0.21-1.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.1-1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"build","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20171128-9.3.2"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"obs-service-source_validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7-9.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP2","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.0-15.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"build","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20171128-9.3.2"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"obs-service-source_validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7-9.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.0-15.3.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"build","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20171128-8.3.3"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 11 SP4","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.162.1-7.4.1"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"osc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.152.0-1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"obs-service-source_validator","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.21-1.3"}]}]}],"products":[{"vendor":"opensuse","product":"obs-service-source_validator"},{"vendor":"suse","product":"obs-service-source_validator"}],"references":[{"url":"https://lists.opensuse.org/opensuse-security-announce/2017-12/msg00024.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://www.suse.com/de-de/security/cve/CVE-2017-9274/","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=938556","tags":["x_refsource_CONFIRM","x_transferred","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-9274"},{"url":"https://github.com/advisories/GHSA-rmgp-j5rm-7ghv"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-9274","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20173253-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1059858","tags":["report"]},{"url":"https://bugzilla.suse.com/1061500","tags":["report"]},{"url":"https://bugzilla.suse.com/1069904","tags":["report"]},{"url":"https://bugzilla.suse.com/665768","tags":["report"]},{"url":"https://bugzilla.suse.com/938556","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2010-4226","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14804","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9274","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2018/suse-su-20180065-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/796918","tags":["report"]},{"url":"https://bugzilla.suse.com/827480","tags":["report"]},{"url":"https://bugzilla.suse.com/891829","tags":["report"]},{"url":"https://bugzilla.suse.com/967265","tags":["report"]},{"url":"https://bugzilla.suse.com/967610","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-4007","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-9274","tags":["report"]},{"url":"https://github.com/openSUSE/osc/commit/f0325eb0b58c266eb0905ccf827dc7eb864378a1","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-9274","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-9274","title":"osc executes spec code during \"osc commit\"","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T19:00:00Z","modified":"2024-09-16T18:59:31.976Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:33:13.96587Z"}],"euvd":[{"id":"EUVD-2017-18210","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T19:00:00Z","modified":"2024-09-16T18:59:31Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:55:27.571827Z"}],"ghsa":[{"id":"GHSA-rmgp-j5rm-7ghv","title":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute...","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2022-05-13T01:36:09Z","modified":"2023-02-01T05:08:56Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:50:53.78471Z"}],"nvd":[{"id":"CVE-2017-9274","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T20:29:01.007Z","modified":"2026-06-17T01:27:48.17Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:04:15.877386Z"}],"osv":[{"id":"CVE-2017-9274","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T20:29:01.007Z","modified":"2026-10-24T10:30:48.113425519Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:06.868403Z"},{"id":"DEBIAN-CVE-2017-9274","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T20:29:01.007Z","modified":"2026-09-01T20:03:51.613409673Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.698576Z"},{"id":"UBUNTU-CVE-2017-9274","description":"A shell command injection in the obs-service-source_validator before 0.7 could be used to execute code as the packager when checking RPM SPEC files with specific macro constructs.","status":"published","published":"2018-03-01T20:29:00Z","modified":"2025-10-24T04:46:20Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:16.154988Z"},{"id":"openSUSE-SU-2024:11106-1","title":"obs-service-source_validator-0.21-1.3 on GA media","description":"These are all security issues fixed in the obs-service-source_validator-0.21-1.3 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:27:50.513376Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"SUSE-SU-2017:3253-1","title":"Fixing security issues on OBS toolchain","description":"This OBS toolchain update fixes the following issues:\n\nPackage 'build':\n\n- CVE-2010-4226: force use of bsdtar for VMs (bnc#665768)\n- CVE-2017-14804: Improve file name check extractbuild (bsc#1069904)\n- switch baselibs scheme for debuginfo packages from foo-debuginfo-32bit to foo-32bit-debuginfo (fate#323217)\n\nPackage 'obs-service-source_validator':\n- CVE-2017-9274: Don't use rpmbuild to extract sources, patches etc. from a spec (bnc#938556).\n- Update to version 0.7\n- use spec_query instead of output_versions using the specfile parser from the build package (boo#1059858)\n\nPackage 'osc':\n- update to version 0.162.0\n- add Recommends: ca-certificates to enable TLS verification without manually installing them. (bnc#1061500)\n","status":"published","published":"2017-12-08T12:54:18Z","modified":"2026-02-04T02:37:06.432056Z","updated_at":"2026-11-02T15:53:44.209561Z"},{"id":"SUSE-SU-2018:0065-1","title":"Fixing security issues on OBS toolchain","description":"This OBS toolchain update fixes the following issues:\n\nPackage 'build':\n\n- CVE-2017-14804: Improve file name check extractbuild (bsc#1069904)\n- Fixed Dockerfile repository parsing\n\nPackage 'obs-service-source_validator':\n\n- CVE-2017-9274: Don't use rpmbuild to extract sources, patches etc. from a spec (bnc#938556).\n- CVE-2016-4007: Several maintained source services are vulnerable to code/paramter injection (bsc#967265)\n- Update to version 0.7.\n- Use spec_query instead of output_versions using the specfile parser from the build package (boo#1059858)\n- obs-service-source_validator: several occurrences of uninitialized value (bsc#967610)\n- hack for util-linux specfiles (bnc#891829)\n- fix dependency to gnupg2 for Fedora (bnc#827480)\n- exit if tmpdir creation fails (bnc#796918)\n\n\nPackage 'osc':\n\n- Update to version 0.162.0.\n","status":"published","published":"2018-01-11T10:25:14Z","modified":"2026-02-04T02:50:17.932564Z","updated_at":"2026-11-02T15:53:44.594517Z"}]}}
