-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2017.2777
            CVE-2017-12625: Apache Hive information disclosure
                     vulnerability for column masking
                              2 November 2017

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:          Apache Hive
Publisher:        The Apache Software Foundation
Operating System: UNIX variants (UNIX, Linux, OSX)
                  Windows
Impact/Access:    Access Confidential Data -- Existing Account
Resolution:       Patch/Upgrade
CVE Names:        CVE-2017-12625  

- --------------------------BEGIN INCLUDED TEXT--------------------

CVE-2017-12625: Apache Hive information disclosure vulnerability for column 
masking

Severity: Important

Vendor: The Apache Software Foundation

Versions Affected: Hive 2.1.0 to 2.3.0

Description:

Hive exposes an interface through which masking policies can be defined on 
tables or views, e.g., using Apache Ranger. When a view is created over a 
given table, the policy enforcement does not happen correctly on the table for
masked columns.

Mitigation:

2.3.0 users should upgrade to 2.3.1

2.2.0 users should upgrade to 2.3.1, obtain the latest source from git for 
branch-2.2

or apply this patch which will be included from 2.2.1

https://git1-us-west.apache.org/repos/asf?p=3Dhive.git;a=3Dcommit;h=3D0e795debddf261b0ac6ace90e2d774f9a99b7f4b

2.1.x users should upgrade to 2.3.1, obtain the latest source from git for 
branch-2.1

or apply this patch which will be included from 2.1.2

https://git1-us-west.apache.org/repos/asf?p=3Dhive.git;a=3Dcommit;h=3D6db9fd6e43f6eef3c9d1ca8e324b2edaa54fb0d3

To mitigate this vulnerability until Hive is upgraded to a new version, there
are two possible options. These steps need to be done manually in Ranger / 
Hive.

1) Restrict users from creating views on tables with column masking rules 
defined. For

this in Ranger Hive Policy:

 - Users should not have SELECT permission for those Table columns with 
masking rules defined.

 - Give SELECT permission only for those columns without masking rules 
defined.

2) Review the Hive Column Masking Policies maintained in Ranger for the 
tables. Then check in Hive if views that read those tables have been defined.

If present, either change the view definition so those columns are not 
selected or directly drop those views.

Credit: This issue was reported by Suja Santhosh of Hortonworks.

If you have any question, please reach out to us in the Hive dev list.

Regards,

The Apache Hive Team

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIUAwUBWfqLWox+lLeg9Ub1AQh6ww/4x4m5j6w2enfGsVlo/rKStluSlrMMtP7I
Qk8wesF5typb7KaWDVAoA/nIHjhSm3aR+925ks+JksNz14xDXeFyqKoGcjEnNIZT
YIC00zaFcjfliDZ9L8g7HEJ0NVQ2YC8m69ZTIeaUqkdZObGF1Pj2vcEEJorJI76j
9rcWyQhDYaa6R2gfB3TA3X/KTiza6azQB67hoHMob7euxUHW8qAvEAQ7/sg3qTm3
4v937M6y40zq5F/Qz326U1rw0u4KWIfaA5/GqVeBbMWpAmcvNE27VyywgK/iuIWx
QoGwo55T27+rwkgRQ46wNPSuP8JvyipmVCulVB9rKgqpC8CvD8q1SIATLgO4VpBP
yX3XU8IZmxJH8bOs4JKbRXKq1B2lIsJ3kJlWNK+NM+VnHOfJJbTkFJyOr9Kcjz/B
FCCFhw6lJ+8s47ktEHNzlKvmslKuSzzVNH5khypy3Mw+ABa/KE/65kxxXDCMxxEK
lc56LopqeogKWlDwLPmm9EXqCXFNju/4o0Hnm/hKlzSLt58B97MVOauTx1txHNmc
UOHNeIxFPs83FWVrlk7wcvY/4iy/c0My/6O/BRFmQTGyYv5u5y4OjQ579NDLJNRb
Hm00hEgH3DhZ0u6gVVMlVjG/QZEipR00dQH5sliHLanm5AHRb2JrcmMCop5sLWWe
qdPkD/y2FQ==
=A7ZX
-----END PGP SIGNATURE-----